#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include "SDL2_gfxPrimitives.h"
#include "SDL_ttf.h"

#include <string>

class image_button{
    public:
        image_button(const char *image, int x, int y, int w, int h, const char *cache = "");

        int click(int x, int y);
        int clicked();
        int reset();
        void draw(SDL_Renderer *renderer);
        const char* cache_path();

        std::string m_path;
        SDL_Surface *m_image;
        SDL_Rect m_rect;
        int m_clicked;
};